﻿<UserControl x:Class="JustPlus.DefPictureBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="147" d:DesignWidth="80" Loaded="UserControl_Loaded" MouseEnter="UserControl_MouseEnter">
    <UserControl.Resources>
        <Storyboard x:Key="gridScale">
            <DoubleAnimation Storyboard.TargetName="grid_scale" Storyboard.TargetProperty="ScaleX" From="1" To="1.2" Duration="0:0:0.5" AutoReverse="True"/>
            <DoubleAnimation Storyboard.TargetName="grid_scale" Storyboard.TargetProperty="ScaleY" From="1" To="1.2" Duration="0:0:0.5" AutoReverse="True"/>
        </Storyboard>
    </UserControl.Resources>
    <Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown">
        <Image Height="116" HorizontalAlignment="Left" Name="image1" Stretch="UniformToFill" VerticalAlignment="Top" Width="80" Source="/JustPlus;component/Images/胶卷.png" />
        <Label Content="豆瓣音乐人" Height="31" HorizontalAlignment="Left" Margin="0,115,0,0" Name="label1" VerticalAlignment="Top" Width="80" Style="{StaticResource GradLabel}" FontWeight="Bold" />
        <Image Height="80" HorizontalAlignment="Left" Margin="0,19,0,0" Name="image2" Stretch="Fill" VerticalAlignment="Top" Width="80" Tag="欧美.png" >
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform x:Name="grid_scale" CenterX="40" CenterY="40"/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
    </Grid>
</UserControl>
